#ifndef DEBUG_H
#define DEBUG_H

#include <QTextEdit>
#include <string>

class Debug
{
    public:
        Debug();
        Debug( QTextEdit *_te ) ;

        void writeBuffer( const QString &str ) ;
        void clearBuffer() ;
        void writeQWidget() ;

    private :
        QTextEdit *te;
        std::string buffer ;
};

#endif // DEBUG_H
